﻿using System;
using System.Linq;

class CompareCharArrays
{
    static void Main()
    {
        bool isEqual = true;
        char[] firstCharArray, secondCharArray;

        firstCharArray = new char[10];
        secondCharArray = new char[10];

        for (int firstCounter = 0; firstCounter < firstCharArray.Length; firstCounter++)
        {
            firstCharArray[firstCounter] = char.Parse(Console.ReadLine());
        }

        for (int secondCounter = 0; secondCounter < secondCharArray.Length; secondCounter++)
        {
            secondCharArray[secondCounter] = char.Parse(Console.ReadLine());
        }

        
        for (int counter = 0; counter < firstCharArray.Length; counter++)
        {
            if (firstCharArray[counter] != secondCharArray[counter])
            {
                isEqual = false;
                break;
            }

        }

        if (isEqual)
        {
            Console.WriteLine("the arrays are equal");
        }
        else
        {
            Console.WriteLine("the arrays are not equal");
        }

    }
}

